<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <%@include file="../../common/Include_input_head.jsp" %>

    <title>密码找回问题设置</title>

    <script type="text/javascript">
        detailPageStyle();
        $(function () {
            var types = $("#types").val();
            if (types != null && types != '') {
                $.each(types.replaceAll(" ","").split(","), function (i, item) {
                    $(":checkbox[name='pwdQ.type'][value='" + item + "']").attr("checked", "checked");
                })
            }
        })
    </script>


</head>

<body style="text-align:center;">

<div class="box1">
    <s:form name="theform" method="post" theme="simple">
        <s:hidden name="pwdQ.wid"/>
        <input type="hidden" id="types" value="${pwdQ.type}"/>

        <fieldset>
            　
            <legend>密码找回问题</legend>
            <table width="100%" border="0" align="center">
                <tr>
                    <td align="right" nowrap="nowrap" width="45%">类型：</td>
                    <td align="left" width="55%"><s:checkboxlist name="pwdQ.type"
                                                                 list="#{'1':'教职工','2':'学生','3':'校领导'}"/> <label
                            style="color:red">*</label></td>
                </tr>
                <tr>
                    <td align="right">标题：</td>
                    <td align="left"><s:textfield id="title" name="pwdQ.title" maxlength="30" cssStyle="width: 300px;"/>
                        <label style="color:red">*</label></td>
                </tr>
                <tr>
                    <td align="right">状态：</td>
                    <td align="left">
                        <s:radio name="pwdQ.state" list="#{'1':'启用','0':'禁用'}"></s:radio>
                        <label style="color:red">*</label></td>
                </tr>
                <tr>
                    <td align="right">排序值：</td>
                    <td align="left"><s:textfield id="orderno" name="pwdQ.orderno" maxLength="4"
                                                  cssStyle="width: 300px;"/><label style="color: red"> * </label></td>
                </tr>
            </table>
        </fieldset>

    </s:form>
</div>
<div class="padding_top10">
    <table class="tableStyle" transMode="true">
        <tr>
            <td colspan="4">
                <input type="button" id="ysSaveButton" value=" 保 存 " onclick="doSave()"/>
                <input type="button" id="" value=" 保存并新增 " onclick="dosavenew()"/>
                <input type="button" id="" value=" 保存并关闭 " onclick="dosaveclose()"/>
                <input type="button" value=" 关 闭 " onclick="parent.closeEntityWindow()"/>
                <s:if test="actionErrors.size()>0 || actionMessages.size()>0 || fieldErrors.size()>0">
						<span id="SystemErrorMessage" style="top: 20px">
							<s:actionerror cssStyle="color:red"/>
							<s:actionmessage cssStyle="color:blue"/>
							<s:fielderror/>
						</span>
                </s:if>
            </td>
        </tr>
    </table>
</div>
</body>
</html>
